{% extends "base.html" %}

{% block content %}

<h2>Please log in</h2>
  {% if form.errors %}
    <p class="error">Sorry, that's not a valid username or password</p>
  {% endif %}

  <form action="" method="post">
  <dl>
      <dt><label for="username">User name:</label></dt>
      <dd><input type="text" name="username" value="" id="username"></dd>
      <dt><label for="password">Password:</label></dt>
      <dd><input type="password" name="password" value="" id="password"></dd>
  </dl>

    <input type="submit" value="Login" />
    <input type="hidden" name="next" value="{% url index %}" />
  </form>


  <p><b>If you don't have an account</b>, click <a href="{% url signup %}">here</a> to create one.</p>
{% endblock %}
